<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
</html>
<script>
    //字面量
    var arr = ["老王","hello"];
    alert(arr[0]);
    //new操作符
    var arr1 = new Array("1",2,3,"老王");
    alert(arr1[3]);
</script>     